import 'package:fish_redux/fish_redux.dart';
import 'package:kunlun_gas/AppViews/EngineerOrderView/model/meter_info_model.dart';

class EngineerMaterAddViewState
    implements Cloneable<EngineerMaterAddViewState> {
  String type = '1';
  List<EngineerMaterList> materList;
  bool isDetail = false;
  List<EngineerMaterList> selectList = [];

  @override
  EngineerMaterAddViewState clone() {
    return EngineerMaterAddViewState()
      ..type = type
      ..isDetail = isDetail
      ..selectList = selectList
      ..materList = materList;
  }
}

EngineerMaterAddViewState initState(Map<String, dynamic> args) {
  return EngineerMaterAddViewState()
    ..type = args['type']
    ..selectList = args['list']
    ..isDetail = args['isDetail'];
}
